#!../jsrun

//import('test1.so');


alert('ok');

var cnt = 0;

var насрать = function(n) {
	sleep(1000*Math.random());
	for(var i=0; i<5; ++i) {
		trace((cnt++) + ") thread " + n + ") trace " + i);
		sleep(200);
	}
	sleep(1000);
	for(var i=0; i<5; ++i) {
		trace((cnt++) + ") thread " + n + ") trace " + i);
		sleep(200);
	}
	alert("FINISH: thread " + n);
	sleep(200);
};

//alert(1);

make(насрать, 3)



alert("ALL FINISHED!");


sleep(100000);


